package com.kayt.cyberBar.cyber.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;


/**
 * The persistent class for the b_cyber_goods_base database table.
 * 
 */
@Entity
@Table(name="b_cyber_goods_base")
@NamedQuery(name="BCyberGoodsBase.findAll", query="SELECT b FROM BCyberGoodsBase b")
public class BCyberGoodsBase implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String name;
	private String searchKey;
	private String sequence;
	private String statusCode;
	private String typeCode;
	private String cyberCode;
	private String updateTime;
	
	private List<BCyberGoodsBaseDesc> descList = new ArrayList<>();
	private List<BCyberGoodsBasePic> picList = new ArrayList<>();
	private List<BCyberGoodsBaseStock> stockList = new ArrayList<>();
	private List<BCyberGoodsBaseTag> tagList = new ArrayList<>();
	private List<BCyberGoodsBaseType> typeList = new ArrayList<>();
	private List<BCyberGoodsBaseTotal> totalList = new ArrayList<>();

	public BCyberGoodsBase() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	@Column(name="SEARCH_KEY")
	public String getSearchKey() {
		return this.searchKey;
	}

	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}


	public String getSequence() {
		return this.sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	@Column(name="TYPE_CODE")
	public String getTypeCode() {
		return this.typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	
	@Column(name="CYBER_CODE")
	public String getCyberCode() {
		return cyberCode;
	}


	public void setCyberCode(String cyberCode) {
		this.cyberCode = cyberCode;
	}

	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BCyberGoodsBaseDesc.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "goods")
	public List<BCyberGoodsBaseDesc> getDescList() {
		return descList;
	}


	public void setDescList(List<BCyberGoodsBaseDesc> descList) {
		this.descList = descList;
	}


	@OneToMany(targetEntity = BCyberGoodsBasePic.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "goods")
	public List<BCyberGoodsBasePic> getPicList() {
		return picList;
	}


	public void setPicList(List<BCyberGoodsBasePic> picList) {
		this.picList = picList;
	}


	@OneToMany(targetEntity = BCyberGoodsBaseStock.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "goods")
	public List<BCyberGoodsBaseStock> getStockList() {
		return stockList;
	}


	public void setStockList(List<BCyberGoodsBaseStock> stockList) {
		this.stockList = stockList;
	}


	@OneToMany(targetEntity = BCyberGoodsBaseTag.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "goods")
	public List<BCyberGoodsBaseTag> getTagList() {
		return tagList;
	}


	public void setTagList(List<BCyberGoodsBaseTag> tagList) {
		this.tagList = tagList;
	}


	@OneToMany(targetEntity = BCyberGoodsBaseType.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "goods")
	public List<BCyberGoodsBaseType> getTypeList() {
		return typeList;
	}


	public void setTypeList(List<BCyberGoodsBaseType> typeList) {
		this.typeList = typeList;
	}


	@OneToMany(targetEntity = BCyberGoodsBaseTotal.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "goods")
	public List<BCyberGoodsBaseTotal> getTotalList() {
		return totalList;
	}


	public void setTotalList(List<BCyberGoodsBaseTotal> totalList) {
		this.totalList = totalList;
	}

}